package com.lcf.system.dto;

import com.lcf.framework.annotation.DictFile;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 商品(Goods)表实体类
 *
 * @author lcf
 * @since 2025-04-24 21:14:31
 */
@Data
@NoArgsConstructor
public class GoodsDTO  {
    //分类id
    @Schema(description = "分类id")
    @NotNull(message = "分类id不能为空")
    private Long categoryId;
    //商品名称
    @Schema(description = "商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String goodsName;
    //商品图片
    @Schema(description = "商品图片")
    @DictFile
    private String goodsImg;
    //商品价格
    @Schema(description = "商品价格")
    @NotNull(message = "商品价格不能为空")
    private BigDecimal goodsPrice;
}

